package com.qf.blog.service;

import com.qf.blog.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.blog.vo.UserVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 达哥
 * @since 2023-03-21
 */
public interface IUserService extends IService<User> {

    void register(UserVo userVo);

    /**
     * 根据邮箱查询用户
     * @param email
     * @return
     */
    public User getUserByEmail(String email);

    Integer updateUserStatus(String code);

    User getUserByUsername(String username);

    Integer updateUserHeader(Integer id, String fileUrl);
}
